package com.runmi.webchat.aftersale.common.result;

import java.io.Serializable;
import java.util.List;

import com.alibaba.fastjson.JSON;
import com.runmi.webchat.aftersale.common.page.PageModel;

public class Result { 
	

	/**
	 * 返回结果
	 */
	private String returnCode;
	
	/**
	 * 返回错误原因
	 */
	private String returnMessage;
	
	
	/**
	 * 数据对象
	 */
	private Object data;
	
	/**
	 * 数据列表
	 */
	private Object items;
	
	public boolean isSuccess(){
		return returnCode.equals(ReulstContants.RETURN_CODE_SUCCESS);
	}
	
	
	public Object getItems() {
		return items;
	}



	public void setItems(Object items) {
		this.items = items;
	}



	public Object getData() {
		return data;
	}



	public void setData(Object data) {
		this.data = data;
	}



	public String getReturnCode() {
		return returnCode;
	}



	public void setReturnCode(String returnCode) {
		this.returnCode = returnCode;
	}



	public String getReturnMessage() {
		return returnMessage;
	}



	public void setReturnMessage(String returnMessage) {
		this.returnMessage = returnMessage;
	}

	@Override
	 public String toString() {
		String jsonString = JSON.toJSONString(this);  
		return jsonString;
		 
	 }
}
